package com.dubbo.service1.impl;

import com.dubbo.service1.Test1Service1;
import com.dubbo.service1.Test2Service1;
import com.dubbo.service2.Test1Service2;
import com.dubbo.service3.Test1Service3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Created by shirenchuang on 2017/3/16.
 */
@Service
public class Test1Service1Impl implements Test1Service1{


    @Autowired
    private Test1Service3 test1Service3;

    @Autowired
    private Test2Service1 test2Service1 ;

    public String test1Service1_1() {
        String s = test1Service3.test1Service3_1();
        return s+"test1Service1_1......";
    }

    public String test1Service1_2() {
        return "test1Service1_2......";
    }

    public String test11_21(){
        String s = test2Service1.test2Service1_1();
        return "Test1Service1Impl 测试本地服务 是调用本地还是调用 远程："+s;
    }
}
